Airwallex\Gateways\ExpressCheckout D

Total Complexity 157
Dependencies 20
Dependents 5
Total lines 1,037
Lines of code 763
Logical lines of code 312
Comment lines 111
Methods 46
Properties 8

Methods 46

Method Rating Maintainability Complexity Lines of code
shouldShowExpressCheckoutButton()
B
47 17 35
isProductSupported()
A
52 12 23
displayExpressCheckoutButtonHtml()
A
46 10 46
process_payment()
A
39 8 62
isCartItemsAllowed()
A
53 9 22
getActiveCardSchemes()
A
47 8 36
hasSubscriptionProduct()
A
55 8 19
getCheckoutDetail()
S
48 6 33
init_form_fields()
S
38 2 84
getExpressCheckoutScriptData()
S
44 4 44
addOrderMeta()
S
58 6 14
isAuthenticationRequired()
S
65 5 9
getProduct()
S
60 4 13
process_refund()
S
51 3 26
do_subscription_payment()
S
52 3 23
getLoginConfirmationSettings()
S
58 3 16
getExpressCheckoutSettingsScriptData()
S
52 2 26
registerHooks()
S
53 2 20
__construct()
S
49 1 34
isAccountCreationPossible()
S
68 3 7
getPreOrderProductFromCart()
S
70 3 6
subscription_payment_information()
S
68 3 7
isPreOrderProductChargedUponRelease()
S
77 3 3
getMetaData()
S
66 3 8
isPageSupported()
S
73 3 5
generate_google_pay_instruction_html()
S
57 1 18
generate_apple_pay_instruction_html()
S
58 1 17
getSupportedProductTypes()
S
60 1 16
isProduct()
S
79 2 3
validate_payment_methods_field()
S
77 2 3
registrationEmailExistsError()
S
66 2 8
isCartOrCheckout()
S
79 2 3
isMethodEnabled()
S
76 2 3
enqueueAdminScripts()
S
65 1 11
enqueueScripts()
S
63 1 11
shouldShowButtonOnPage()
S
79 1 3
isCardGatewayEnabled()
S
77 1 3
loadAppleScript()
S
68 1 9
getButtonSize()
S
82 1 3
getButtonType()
S
80 1 3
getShowButtonOn()
S
80 1 3
is_capture_immediately()
S
78 1 3
generate_button_preview_html()
S
73 1 5
generate_alert_html()
S
67 1 9
displayExpressCheckoutButtonSeparatorHtml()
S
75 1 5
getButtonTheme()
S
80 1 3